function reducer(prevState={
    list1:[],
    list2:[]
},action={}){
    var newState={...prevState}
    switch(action.type){
        case "change-list":
            newState.list1=action.payload;
            console.log("newState=",newState)
            return newState;
        case "change-list2":
            newState.list2=action.payload;
            return newState;
        default:
            return prevState;
    }
}
export default reducer